home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Performance Co-Pilot 1.3
/
SGI Performance Co-Pilot 1.3.iso
/
dist
/
pcp.idb
/
usr
/
share
/
catman
/
u_man
/
cat1
/
pmrules.z
/
pmrules
Wrap
Text File
|
1997-04-03
|
16KB
|
265 lines
PPPPMMMMRRRRUUUULLLLEEEESSSS((((1111)))) PPPPMMMMRRRRUUUULLLLEEEESSSS((((1111))))
NNNNAAAAMMMMEEEE
ppppmmmmrrrruuuulllleeeessss - Performance Co-Pilot editor for ppppmmmmiiiieeee rule templates
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ppppmmmmrrrruuuulllleeeessss [_f_i_l_e [_i_m_p_o_r_t_f_i_l_e] ]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
ppppmmmmrrrruuuulllleeeessss provides a graphical user interface for instantiating and editing
rules for ppppmmmmiiiieeee(1) (the Performance Co-Pilot Inference Engine) without
having to learn the ppppmmmmiiiieeee(1) syntax.
ppppmmmmrrrruuuulllleeeessss cannot be used to create new ppppmmmmiiiieeee rules. Rather, it allows one
to edit existing rules that have been specified using templates. A
template is like a rule but with certain elements of the rule
parameterized. These parameters are the parts of the rule that a ppppmmmmrrrruuuulllleeeessss
user may change.
For example, a ppppmmmmiiiieeee rule to raise an alarm if a machine becomes too busy
may include a comparison of the CPU idle time with one threshold and the
disk throughput rate with another threshold. The two thresholds are
specified as fixed numbers in the rule. If this rule is described by a
template, the two thresholds are specified as parameters (with variable
values). Each template also has an enable/disable state. When ppppmmmmrrrruuuulllleeeessss
is used to edit the template, only the thresholds, the template's name
and the enable/disable state may be changed, the rest is immutable.
ppppmmmmrrrruuuulllleeeessss is usually started with a _f_i_l_e of templates to be edited as its
sole command line argument. A list of the templates from the file
appears in the main window. This is the active set of templates. The
operations available through the menus apply only to the active set.
Saving the active set also generates a file containing the corresponding
ppppmmmmiiiieeee rules. That file will have the same name as the saved template
file, with ....ppppmmmmiiiieeee appended. During the save operation, any template
marked ``disable'' will not generate any corresponding ppppmmmmiiiieeee rules.
For convenience we use the notation MMMMyyyymmmmeeeennnnuuuu->IIIItttteeeemmmm to indicate that IIIItttteeeemmmm
should be chosen from the MMMMyyyymmmmeeeennnnuuuu menu. For example TTTTeeeemmmmppppllllaaaatttteeee->DDDDeeeelllleeeetttteeee
indicates that the DDDDeeeelllleeeetttteeee item should be chosen from the TTTTeeeemmmmppppllllaaaatttteeee menu.
Items from the FFFFiiiilllleeee menu apply to the entire active set. Only one file
of templates may be open for editing at a time. Thus it is necessary to
FFFFiiiilllleeee->CCCClllloooosssseeee the active set before opening another templates file.
New templates may be added to the active set by either copying existing
ones or by importing them from files.
To copy an existing template, select it by clicking on it and choose
TTTTeeeemmmmppppllllaaaatttteeee->CCCCooooppppyyyy. The copy is added to the bottom of the active set. Its
name is the name of the original template, with ccccooooppppyyyy ooooffff prepended.
Similarly, to delete a template from the active set, select it and choose
TTTTeeeemmmmppppllllaaaatttteeee->DDDDeeeelllleeeetttteeee.
PPPPaaaaggggeeee 1111
PPPPMMMMRRRRUUUULLLLEEEESSSS((((1111)))) PPPPMMMMRRRRUUUULLLLEEEESSSS((((1111))))
To import a template from another file of templates into the active set,
choose TTTTeeeemmmmppppllllaaaatttteeee->IIIImmmmppppoooorrrrtttt............. This brings up the Import Template dialog
box. The CCCChhhhoooooooosssseeee FFFFiiiilllleeee............ button at the bottom allows one to open a file.
Once a file has been opened a list of the templates in the file will
appear in the scrolled list that dominates the dialog. Select the
template(s) to be copied to the active set and click on OOOOKKKK. The CCCCaaaannnncccceeeellll
button aborts the import operation.
To edit a template's parameters, actions, enable/disable it, change its
name or read information about the template, select the template in the
main window and choose TTTTeeeemmmmppppllllaaaatttteeee->EEEEddddiiiitttt............. Double clicking on the
template in the main window has the same effect. This brings up the Edit
Template dialog box. At the top is a text field where the name of the
template may be changed. A toggle button on the right allows the
template to be enabled or disabled. This determines whether ppppmmmmiiiieeee will
ignore the rule or not. Below this is some text, labelled HHHHeeeellllpppp,
describing the template and it's parameters. Below the help text is a
series of labelled text fields displaying values for the template's
parameters.
A series of predefined actions appears near the bottom of the dialog box.
Each is preceded by a check box allowing the action to be enabled or
diabled. When ppppmmmmiiiieeee is run using the rules generated from the template
and a rule condition is satisfied, the actions that are enabled will be
executed. Actions may include references to the rule's parameters and
global parameters. References to parameters in actions are shown in a
bold typeface.
Rules often supply a special action named uuuusssseeeerrrr aaaaccccttttiiiioooonnnn which has an
associated parameter with the same name. If that action is enabled, the
associated parameter will be executed as a shell command by ppppmmmmiiiieeee when the
rule fires. This allows arbitrary actions to be executed in addition to
the predefined ones. Two special (hidden) parameters named rrrruuuulllleeee and hhhhoooosssstttt
are defined for actions. These are the name of the rule that caused the
action and the host for which the condition is true respectively. They
are not available in a uuuusssseeeerrrr aaaaccccttttiiiioooonnnn.
New values may be typed into the fields to change the values of the
parameters. If Enter is pressed after the new value is entered, the new
value will be checked; if it is invalid a warning dialog will be posted.
The Tab or BackTab keys may be used to move through the parameters. If a
parameter has an invalid value, Tab (BackTab) will not move to the next
(previous) parameter. Pressing Return at that point will yield a message
as to why the parameter's value is inappropriate.
The DDDDeeeeffffaaaauuuullllttttssss button at the bottom of the Edit Template dialog box
restores the values of all parameters to some default values predefined
when the template was first created. Note that these are not necessarily
the values the parameters had prior to bringing up the dialog box. They
are not even guaranteed to be the values that the parameters had when the
templates file was opened. They are fallback values determined by the
template's creator.
PPPPaaaaggggeeee 2222
PPPPMMMMRRRRUUUULLLLEEEESSSS((((1111)))) PPPPMMMMRRRRUUUULLLLEEEESSSS((((1111))))
The OOOOKKKK button updates the parameter values and dismisses the Edit
Template dialog box. If one or more parameters have invalid values, when
the OOOOKKKK button is pressed, an error dialog will appear, listing the
parameters in error. This dialog may be dismissed or moved to the side
while the offending values are corrected.
The NNNNeeeexxxxtttt and PPPPrrrreeeevvvviiiioooouuuussss buttons provide an easy way to edit the next and
previous templates in the main window. Using either of these buttons is
the same as pressing the OOOOKKKK button, selecting the adjacent template in
the main window and then selecting TTTTeeeemmmmppppllllaaaatttteeee->EEEEddddiiiitttt............. Any changes made
to the template currently being edited are accepted. An error dialog
describing the problem(s) will appear if there are invalid values for any
of the parameters in the current template. It isn't possible to move to
the adjacent templates until the values are correct.
The CCCCaaaannnncccceeeellll button discards any changes that were made in the Edit
Template dialog and dismisses it.
Templates may share parameters. Such parameters are said to be global.
Choosing TTTTeeeemmmmppppllllaaaatttteeee->EEEEddddiiiitttt GGGGlllloooobbbbaaaallllssss............ brings up the Edit Global Parameters
dialog box. Its appearance and behavior are almost identical to the Edit
Template dialog box.
When a new template is imported into the active set, it brings any global
parameters it requires with it if they do not already exist. The
definition of a parameter in a template takes precedence over an
identically named global parameter. Including a new template in the
active set that uses a global parameter with the same name as template-
specific parameters defined in existing templates will not affect the
existing templates.
The OOOOppppttttiiiioooonnnnssss menu contains two items. SSSShhhhoooowwww rrrruuuulllleeee ccccoooonnnnddddiiiittttiiiioooonnnnssss displays the
condition associated with the ppppmmmmiiiieeee rule that a template describes when
the template is being edited; this condition is displayed using the ppppmmmmiiiieeee
syntax. SSSShhhhoooowwww gggglllloooobbbbaaaallllssss iiiinnnn rrrruuuulllleeee hhhheeeellllpppp includes global parameters in the help
text displayed when templates are being edited. All global parameters
are displayed, not just the ones the rule uses.
If ppppmmmmrrrruuuulllleeeessss is started with no arguments, the active set is empty and
either an active set must be loaded (FFFFiiiilllleeee->OOOOppppeeeennnn............) or a new active set
started (TTTTeeeemmmmppppllllaaaatttteeee->IIIImmmmppppoooorrrrtttt............). If _i_m_p_o_r_t_f_i_l_e is specified on the command
line it is expected to be a template file which will be pre-loaded into
the list in the Import Template dialog box. The _f_i_l_e argument may be ----,
which specifies that no templates are to be loaded into the active set
for editing. This is usually done when an _i_m_p_o_r_t_f_i_l_e is also supplied.
FFFFIIIILLLLEEEESSSS
////vvvvaaaarrrr////ppppccccpppp////ccccoooonnnnffffiiiigggg////ppppmmmmrrrruuuulllleeeessss////*
template files supplied with the Performance Co-
Pilot (PCP) and its various add-on products.
PPPPaaaaggggeeee 3333
PPPPMMMMRRRRUUUULLLLEEEESSSS((((1111)))) PPPPMMMMRRRRUUUULLLLEEEESSSS((((1111))))
////vvvvaaaarrrr////ppppccccpppp////ccccoooonnnnffffiiiigggg////ppppmmmmiiiieeee////ccccoooonnnnttttrrrroooollll
control over concurrent execution limits for
standard ppppmmmmiiiieeee action scripts
////vvvvaaaarrrr////ppppccccpppp////ccccoooonnnnffffiiiigggg////ppppmmmmiiiieeee////* standard ppppmmmmiiiieeee action scripts
////uuuussssrrrr////ppppccccpppp////lllliiiibbbb////ppppmmmmiiiieeee----ccccoooommmmmmmmoooonnnn
common shell procedures used by the standard ppppmmmmiiiieeee
action scripts
////uuuussssrrrr////lllliiiibbbb////XXXX11111111////aaaapppppppp----ddddeeeeffffaaaauuuullllttttssss////PPPPmmmmRRRRuuuulllleeeessss
X11 application default resources.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
ppppmmmmiiiieeee(1) and ppppmmmmrrrruuuulllleeeessss(4).
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
Various self-explanatory messages appear in dialogs.
BBBBUUUUGGGGSSSS
The treatment of the hidden global parameter hhhhoooosssstttt may cause some
surprises. The generated ppppmmmmiiiieeee rules are enumerated for each host, which
effectively over-rides any use of the default host by ppppmmmmiiiieeee at run-time -
and in particular this means the ----hhhh option for ppppmmmmiiiieeee will have no effect.
As a special case, for the global parameter hhhhoooosssstttt, a hostname of llllooooccccaaaallllhhhhoooosssstttt
(and this is the default) is suppressed in the predicate part of the
generated ppppmmmmiiiieeee rules, and is replaced by the literal _d_e_f_a_u_l_t-_p_m_i_e-_h_o_s_t in
the parameters for the actions. This means the metrics will be fetched
from the default host, but it is not possible to identify the host in the
actions.
This special handling reduces, but does not eliminate, user surprise.
The preferred way to specify remote hosts in rules generated by ppppmmmmrrrruuuulllleeeessss
is to set the global parameter hhhhoooosssstttt to the desired hostname, save the
rules, and then use ppppmmmmiiiieeee without the ----hhhh option.
PPPPaaaaggggeeee 4444